import request from '@/utils/request'
/**
 * @description 获取员工列表
 * @param {*} params
 * @returns
 */
export const getEmployeeList = (params) => request({
  url: '/sys/user',
  params
})

/**
 * @description: 删除员工
 * @param {*} id 员工id
 * @return {*}
 */
export const delEmployee = (id) => request({
  url: `/sys/user/${id}`,
  method: 'DELETE'
})

/**
 * @description 新增员工
 * @param {*} data
 * @returns
 */
export const addEmployee = (data) => request({
  url: '/sys/user',
  method: 'POST',
  data
})

/**
 * @description 批量导入员工
 * @param {*} data
 * @returns
 */
export const importEmployee = (data) => request({
  url: '/sys/user/batch',
  method: 'POST',
  data
})
